package com.shinbada.modules.competitor.mapper;

import com.shinbada.modules.competitor.entity.DTO.CompetitorProductDTO;
import com.shinbada.modules.competitor.entity.VO.CompetitorResultVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.shinbada.core.persistence.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import com.shinbada.modules.competitor.entity.CompetitorProduct;

import java.util.List;

/**
 * 产品基础表MAPPER接口
 * @author initcap
 * @version 2021-08-04
 */
@Mapper
@Repository
public interface CompetitorProductMapper extends BaseMapper<CompetitorProduct> {
    /**
     * 获取产品对比树
     * @param competitorProductDTO
     * @return
     */
    List<CompetitorResultVO> productList(CompetitorProductDTO competitorProductDTO);

    /**
     * 根据产品ids获取数据结构
     * @param productIds
     * @return
     */
    List<CompetitorResultVO> productListByIds(@Param("productIds") String[] productIds);
}
